package com.wyh.service.feemanagementservice;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wyh.domain.dto.feemanagementdto.BillingDetDTO;
import com.wyh.domain.dto.feemanagementdto.BillingitemsDTO;
import com.wyh.domain.dto.feemanagementdto.PrepaidChargeDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wyh.domain.po.feemanagementpo.Chargings;
import com.wyh.domain.vo.feemanagementvo.FeeFormVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 计费生成表 服务类
 * </p>
 *
 * @author ggt
 * @since 2024-05-22
 */
public interface IChargingService extends IService<Chargings> {

//    List<FeeFormVO> getFeeFormByResourceId(Integer resourceId);

    Page<FeeFormVO> getFeeFormByResourceIdPage(Integer resourceId, Integer page, Integer size);

    Integer addCustomerToResource(Integer customId, Integer resourceId, BigDecimal fee);

    List<BillingitemsDTO> getBillingitems (Integer resourceid, Integer customerid);

    PrepaidChargeDTO prepaidCharge(Integer resourceid, Integer customerid, Integer billingitemsid);

    List<BillingDetDTO> generateCharging(Integer month, Integer resourceId, BigDecimal price);
}
